package day7;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

/**
 * @author oldliu
 * @since 1.0
 */
public class FileIn {
    public static void main(String[] args) throws IOException {

        InputStream in = new FileInputStream("D:\\tmp\\fuyang.txt");
//        int b1 = in.read();
//        System.out.println(b1);
//        int b2 = in.read();
//        System.out.println(b2);
//        int b3 = in.read();
//        System.out.println(b3);
        int b=0;
        while ((b=in.read())!=-1){
            System.out.print(b+" "+(char)b+" ");
        }
        System.out.println();
        in.close();
    }
}
